GtkApplication: Try to cope with ssh situations better
authorMatthias Clasen <mclasen@redhat.com>
Fri, 19 Dec 2014 04:20:43 +0000 (23:20 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 19 Dec 2014 04:26:23 +0000 (23:26 -0500)
commitac5ffd847b1a7e744d7922359c1639b795c28908
treec282bd0aca1e19d50b2fd1823424612de36c75fe
parent57d034ce9f16c883f2f91dd2cc3b3070a8e665e2
GtkApplication: Try to cope with ssh situations better

Override the gtk-shell-shows-app-menu and gtk-shell-shows-menubar
settings to FALSE, if we can detect that we are not on the same
session bus as the xsettings provider that we got these settings
from.

We determine this by comparing the bus ID of 'our' session
bus with the one reported in the Gtk/SessionBusId xsetting.
If they are different, then it very likely that we are in an ssh
situation where we see the forwarded X display, but not the
session bus. The D-Bus based menu exporting will not work
in this situation.

https://bugzilla.gnome.org/show_bug.cgi?id=671802
gtk/gtkapplication-dbus.c